Field Not Initialized (FNI)

Description:

This audit finds uninitialized class fields that are not initialized:

Incorrect:

class Foo {
    private Message msg;
    public void printMessage() {
          msg.print();
    }
}

Correct:

class Foo {
    private Message msg;
    Foo(Message msg) { 
        this.msg = msg;
    }

    public void printMessage() {
        msg.print();
    }
}